using FluentNHibernate.Automapping;

namespace HashFoo.Nhib
{
    /// <summary>
    /// Contains default auto mapping configuration conventions.
    /// </summary>
    /// <remarks>
    /// 
    /// </remarks>
    public abstract class AutomappingConfigurationBase : DefaultAutomappingConfiguration
    {
        public override bool ShouldMap(FluentNHibernate.Member member)
        {
            if (member.IsProperty && !member.CanWrite && !member.IsAutoProperty) return false;

            return base.ShouldMap(member);
        }
    }
}